package com.huaxia.dao;

import com.huaxia.base.BaseMapper;
import com.huaxia.model.CountVo;
import com.huaxia.model.Order;
import com.sun.tools.corba.se.idl.constExpr.Or;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Repository
public interface OrderMapper extends BaseMapper<Order> {

    public List<Order> queryOrderList(Order order);
    public List<String> queryAllDate();
    public List<Map<String,Object>> queryCondtion(String orderDate);
    public Long insertSelective(Order order);
    public Long updateByCondition(Order order);
    public Long createOrderCode(Order order);
    public Long insertOrderCode(String orderCode);
    public List<String> queryOrderCode(String orderCode);

    public List<CountVo> countByDate();
    public List<CountVo> countBySource();
    public List<CountVo> countByDateAndSource();

    public List<CountVo> countByCreateTime();

    public Map<String,String> queryTimeByPlay(String orderPlay);
}